<!DOCTYPE html>
<html>
<!--
Copyright 2011 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<head>
<title>Path Reference: root</title>
<link rel="stylesheet" href="common_styles.css">
<script src="include.js"></script>
<style>
.person.dogOwner {
  color: green;
}

.person {
  color: red;
}
</style>
</head>
<body>
  <div class="example">
    <h1>Path Reference, root: /</h1>
    <div class="content">
      <ul>
      <template iterate="manager.employees">
        <li>{{ ./ }} works at {{ /company }}</li>
      </template>
      </ul>
    </div>
  </div>

<script>
document.body.model = {
  company: 'Initech',
  manager: {
      boss: 'Lumbergh',
      employees: [
        'Michael',
        'Peter',
        'Samir'
      ]
    }
};
</script>

  <div class="comment">
    <h1>Comment</h1>
    <div class="content">
      Often useful in combining a common root path with a local value, a value
      referenced from the 'root' scope is required. The 'root' scope is the
      first place that a model has been directly set on a node. Here, 'Initech'
      is retrieved via '/company'.
    </div>
  </div>
</body>
</html>